package com.hao.order.app.model.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/5/24 20:22
 */
@Data
public class PayOrderRequest implements Serializable {
    private static final long serialVersionUID = -649342722499205240L;
    /**
     * 当前用户
     */
    @NotNull
    @Min(value = 1)
    private Long userId;

    /**
     * 选中订单id
     */
    @NotNull
    @NotBlank
    private String orderIds;

    /**
     * 金额
     */
    @NotNull
    @Min(value = 0)
    private Double amount;
}
